home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 001-025 / scopedisk23 / fastdisk / fastdisk.doc < prev    next >
Text File  |  1995-03-18  |  7KB  |  176 lines

  1.  
  2.                 Fast Disk V1.5
  3.  
  4.  
  5.                 For AMIGA500/1000/2000
  6.  
  7.  
  8.               Written in Aztec C - V3.4a
  9.  
  10.                     
  11.                 Written 1987 by:
  12.  
  13.                 Torsten Stolpmann
  14.                  Wilhelm-Raabe Strasse. 26
  15.                 6750 Kaiserslautern
  16.  
  17.  
  18.          English Translation Provided by Stormin' Norman and Mark Dorn
  19.  
  20.  
  21. What is FastDisk?
  22.  
  23. FastDisk is a Program that optimizes the at times chaotic disk structur of an 
  24. Amiga Disk.
  25.  
  26. Everbody knows how long it can take, until a long directory is read into 
  27. memory. Fast Disk accelerates this process between 3 and 5 times.
  28.  
  29. Everybody knows the noise the drive makes when trying to read the workbenck 
  30. icons.
  31. FastDisk reduces the head movement to a minimun.
  32.  
  33. FastDisk also accelerates the validation time and the bootprocess.
  34.  
  35. FastDisk also accelerates the time of loading a program upto 50%.
  36.  
  37.  
  38. What does Fast Disk do?
  39.  
  40. FastDisk the above by copying the disk by sectors, but the physical position 
  41. on the destination disk are going to be changed. That is all! 
  42. The destination disk is still a regular AmigaDOs disk, so there are 
  43. NO problems with compatibility.
  44.  
  45. How does FastDisk work?
  46.  
  47. To understand how FastDisk works, you have to understand a little on how 
  48. AmigaDos operates on a regular disk. More about this, but not sufficient, 
  49. information can be found in the AMiga Dos manual.
  50. Here just the most important information.
  51.  
  52. The 1760 blocks (512Bytes each) are divided into the following kriteria!
  53.  
  54. 1. Bootsector
  55. 2. Rootblock
  56. 3. Directory-blocks
  57. 4. Fileheader-blocks
  58. 5. Fileextension-blocks
  59. 6. Datablocks
  60.  
  61. BootSectors are always on sector 0 and 1. These are on every AmigaDos disk 
  62. and are read while booting up the system.(This is only if the disk is 
  63. bootable) Then there will be a program executed. FastDIsk cpies these tracks 
  64. without any changes. 
  65.  
  66. The Rootblock (Sector 880) holds the diskname,creationdate,etc.. And the Hash
  67. chart with 72 entries with pointers for all files/direcotries that are 
  68. located on the Root Directory. These entries are sorted by the 
  69. Hash-Algorithmus.The file/directory name is used for this. If it as a 
  70. Directory name, then the pointer points to the Directoryblock, which is 
  71. etup similar as the rootblock.
  72.     If it is a File entry then the pointer points to a fileheaderblock. 
  73. Not all entries in the chart must be occupied. That is why a pointer of "0" 
  74. is interpreted as blank entry.
  75.     It is possible that there is more then one entry occupy the same 
  76. place on the Hash chart. These collisions are solved in a way that the 
  77. needed headerblocks are chained in a linear list by a certain pointer.
  78.     The Fileheaderblocks again have another chart with also 72 entries 
  79. with pointers to Datablocks that belong to the certain file. If a file needs 
  80. more then 72 entries, a chain of Fileexstansionblocks is constructed. These 
  81. again can have 72 entries. 
  82.     Also is it important to know that the Amiga Disk I/O is track 
  83. Oriented. That means if the head starts to read a track, it reads all the 
  84. sectors of this Track automatically and saves in ram until it read the whole 
  85. track, and the read/write head leaves the track completely. This is a 
  86. advantage if the physikal Positioning of the blocks on the disk is done.
  87.     These are the possibilities to optimize the diskstructure.
  88.  
  89. 1. The physikal order of the Files/Directories on the disk is written in 
  90. the same order of the Hash chart. Because the DIR command go along the Hash 
  91. chart the listing of directories is going to be accelerated. THe Validation
  92. time is shortened as well!
  93.  
  94. 2. To place fileheaderblocks there are always two possibilities. 
  95. A) you group all the headerblocks near the RootBlock(Which accelerates the
  96. reading or directories). Or you place all the Datablocks right behing the 
  97. headerblocks. ( THe headerblocks are now all over  the disk, but loading 
  98. of files is going to be accelerated.
  99. For Directoryheader there are similar possibilities. For fast directories 
  100. it is better to group inside the Fileheaderblocks.
  101. For Faster loading of files it is better to place Directoryheader 
  102. inside the Roottrack. Usually there is enough room to place all the 
  103. directoryheaders there. 
  104.     As you see, there are advantages and disadvantages to both mehtods. 
  105. Fo that reason a little of both methods is supported by the program,
  106. depending on what you want, fast directories (Datadisks) or to load a program
  107. faster (Workbench disks).
  108.      Amiga Dos works in a stradegy that combines both disadvantages 
  109. described above. It tries to place the Headerblock and the first Datablock 
  110. of the file behind each other near the Rootblock. This accelerates the 
  111. loading of small files (System-configuration, .info files).
  112.     FastDisk places the following files right behind hte headerblock:
  113.  
  114.     Startup-sequence
  115.     System-Configuration
  116.     All files with the .info ending
  117.  
  118.  
  119. When doesn't FastDisk work?
  120.  
  121. FastDisk requires 2 disk drives, and alot of chip memory. When copying it 
  122. reads all Header and Directoryblocks to Ram. If there isn't sufficient room 
  123. FastDisk will fail!
  124.  
  125. Otherwise you should give FastDisk as much ram as possible. FastDisk tries 
  126. to save sectors that are needed later to save in the Cache. That means the 
  127. more ram you give fastdisk, the faster the program will run!
  128.  
  129. FastDisk assumes that you always use a standart Amigados disk. There 
  130. shoudn't be any sections that are not controlled by  the Amiga dos. If there
  131. are such sectors, FastDisk will not copy, excluding the bootsector.
  132.  
  133.     FastDisk can't copy a disk whos disk structure is corupt. 
  134. Fastdisk notices these errors and suggests to run DiskDoctor.
  135.  
  136.  
  137.  How to run FastDisk!
  138.  
  139. You can use FastDisk from CLI as well as from Workbench. If it run from 
  140. WB it opens its own window (a feature of Aztec 3.4a). A icon for the 
  141. nessesary entries is included.
  142.  
  143. Usage   : FastDisk [FROM] drive [TO] drive [FASTDIR] [NOFORMAT]
  144. Defaults: FastDisk FROM df0: to df1:
  145.  
  146. From and To are not nessesary to include, only if you want to reverse the 
  147. program. (I.e. from df1 to df0)
  148.     If you add Fastdir, FastDisk will work so you get Fast Directories.
  149. With the NOFORMAT command it won't format the Destination disk, and also 
  150. accelerates the copying process, but has the disadvantage if you ever have 
  151. to use Diskdoctor, there could be conflicts with older files already on the 
  152. disk. In that case DiskDoctor sometimes even deletes the working files. 
  153.  
  154. Usage from Workbench:
  155.  
  156. THese options are available from the ToolTypeicon by using the INFO 
  157. command from workbench.
  158.  
  159. The Tolltypes are:
  160.  
  161. WINDOW = This is the definition of the window that is opened when 
  162.           running the file, and shouldn't be changed
  163.  
  164. FROM = This is the scource drive (df0:-df3:)
  165.  
  166. TO = This is the destination drive (df0:-df3:)
  167.  
  168. FASTDIR = On sets it to on, off or anything else shuts it off
  169.  
  170. NOFORMAT = Here should be on or off
  171.  
  172. Defaults : From     = df0:
  173.            To       = df1:
  174.            Fastdir  = OFF
  175.            NOFORMAT = OFF
  176.